package main

import (
	"fmt"
//	"reflect"
)

type Integer int

func (i Integer)Less(j Integer)bool{
	return i<j
}

//pay attention to "i *Integer" and it can not be "i Integer"
func (i *Integer)Add(j Integer){
	*i=*i+j
}

func main(){
	var i,j Integer=1,2
	b:=i.Less(j)
	fmt.Printf("%v is less than %v = %v\n",i,j,b)
	i.Add(j)
	fmt.Println("add result",i)
}